import request from "../request"
export class ContactService{
    async ListAsync(){
        let json = await request({
            url: `/api/UserFriend`
        })
        return json.result
    }
    async AddAsync({id}){
        let json = await request({
             url: `/api/UserFriend/${id}`,
             type:'POST'
        })
        return json.result
    }
    async RemoveAsync({id}){
        let json = await request({
             url: `/api/UserFriend/${id}`,
             type:'DELETE'
        })
        return json.result
    }
}
